package com.mycompany.virtualApp.dao;

import com.mycompany.virtualApp.entity.TabAdvModel;
import com.mycompany.virtualApp.mapper.TabAdvMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/6 0006.
 */
@Repository("tabadvDao")
public class TabAdvDaoImpl implements TabAdvDao {

    @Autowired
    private TabAdvMapper tabAdvMapper;

    @Override
    public List<TabAdvModel> getTabAdvList(Map<String, Object> map) {
        return tabAdvMapper.selectAllByParam(map);
    }

    @Override
    public int saveTabAdv(TabAdvModel tabAdvModel) {
        return tabAdvMapper.saveTabAdv(tabAdvModel);
    }

    @Override
    public TabAdvModel selectByParam(Map<String, Object> map) {
        return tabAdvMapper.selectByParam(map);
    }

    @Override
    public int delete(Map<String, Object> map) {
        return tabAdvMapper.delete(map);
    }

    @Override
    public int updateTab(TabAdvModel tabAdvModel) {
        return tabAdvMapper.updateTab(tabAdvModel);
    }

}
